import type { App } from 'vue'
import DuiAction from './dui-action'
import DuiCheck from './dui-check'
import DuiDialog from './dui-dialog'
import DuiForm from './dui-form'
import DuiPage from './dui-page'
import DuiSearch from './dui-search'
import DuiTable from './dui-table'
import DuiTree from './dui-tree'

const commonUi = [DuiAction, DuiCheck, DuiDialog, DuiForm, DuiPage, DuiSearch, DuiTable, DuiTree]

export default {
  install(app: App) {
    commonUi.map((item: any) => {
      app.use(item)
    })
  }
}
